﻿namespace Sage.Http.Authentication
{
    /// <summary>
    /// HTTP请求认证提供者接口
    /// </summary>
    public interface IAuthenticationProvider
    {
        /// <summary>
        /// 对HTTP请求应用认证信息
        /// </summary>
        /// <param name="request">HTTP请求消息</param>
        /// <returns>异步任务</returns>
        Task AuthenticateRequest(HttpRequestMessage request);
    }
}
